package com.example.datamaskingdemo.utils;

import org.springframework.util.StringUtils;

public class DesensitizedUtils {
    public static String telephone(String telephone){
        if (StringUtils.isEmpty(telephone)){
            return "";
        }
        return telephone.substring(0,3)+"****"+telephone.substring(telephone.length()-4);
    }
}